package com.gitee.dupe.oauth.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;

/**
 * @author LYH
 */
@Data
@ApiModel(value = "重置密码")
public class ResetPasswordByCodeDTO {
    @NotBlank
    @ApiModelProperty(value = "验证码key", required = true)
    private String key;
    @NotBlank
    @ApiModelProperty(value = "验证码", required = true)
    private String code;
    @NotBlank
    @ApiModelProperty(value = "新密码", required = true)
    private String newPassword;
}
